package com.ljt.Map;

import java.util.HashMap;

/**
 * @description:
 * @author: 28437
 * @date: Created in 2020/5/31 9:43
 * @version: 1.0
 * @modified By:
 */
public class Place {
    private String description;
    private HashMap<String,Place> exits=new HashMap<String, Place>();

    public Place() {
    }

    public Place(String description) {
        this.description = description;
    }

    public  void setExit(String direction,Place place){
        exits.put(direction,place);
    }

    @Override
    public String toString() {
        return this.description;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public HashMap<String, Place> getExits() {
        return exits;
    }

    public void setExits(HashMap<String, Place> exits) {
        this.exits = exits;
    }
}
